//
// Created by Administrator on 2020/7/12 0012.
//

#ifndef MANAGEMENTSYSTEM_SALESMAN_H
#define MANAGEMENTSYSTEM_SALESMAN_H
#include "Staff.h"

class Salesman:virtual public Staff
{
protected:
    double sales;//销售额
public:
    double getSales() const;
    void setSales(double sales);

public:
    Salesman(string no,string name,int age,double sales):Staff(no,name,age)
    {
        this->NO=no;
        this->name=name;
        this->age=age;
        this->sales=sales;

    }
    virtual ~Salesman(){}
    virtual void showData()const ;
    virtual string getTitle()const ;



};


#endif //MANAGEMENTSYSTEM_SALESMAN_H
